package com.example.demo;

public class ContactInfo {
    private String streetName;
    private String city;
    private String province;

    public String getStreetName() {
        return this.streetName;
    }

    public String getCity() {
        return this.city;
    }

    public String getProvince() {
        return this.province;
    }

    public String getFullAddress() {
        return getProvince() + "; " +
                getCity() + "; " +
                getStreetName();
    }
}

class User {
    private final ContactInfo contactInfo;

    public User(ContactInfo contactInfo) {
        this.contactInfo = contactInfo;
    }

}